package com.wantup.consumer;

import common.service.OrderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @author Zhaoluowei
 * @version 1.0
 * @date 2019/4/10 11:35
 */
public class ConsuerApp {

    public static void main(String[] args) throws IOException {

        ClassPathXmlApplicationContext ioc = new ClassPathXmlApplicationContext("consumer.xml");
        OrderService bean = ioc.getBean(OrderService.class);
        bean.initOrder("1");
        System.out.println("我执行完了");

//        ioc.start();
        System.in.read();
    }

}
